<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <h1>{{ num }}</h1>
  <h3>{{ data.num }}</h3>
  <router-view></router-view>
</template>

<script setup>
  
  import {
    computed,
    reactive
  } from 'vue'
  import {
    useStore
  } from 'vuex'
  import myData from '@/utils/myData.js'
  
  const store = useStore();
  
  const num = computed(() => store.state.num);
  
  const data = reactive(myData);

  // This starter template is using Vue 3 experimental <script setup> SFCs
  // Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
</script>

<style>
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
  }
</style>
